export default {
    components: {},
    filters: {
        typeFilter(value) {
            const type = { 1: '预算清单', 2: '变更预算清单' };
            return type[value] || '--';
        },
        statusFilter(value) {
            //状态(0.无效；1.草稿；2.已提交；3.已驳回；4.已通过)
            const status = ['无效', '草稿', '已提交', '已驳回', '已通过'];
            return status[value] || '--';
        }
    },
    name: 'OrderMonitorContent',
    props: {
        dataList: {
            type: Array,
            default: () => []
        },
        loading: {
            type: Boolean,
            default: () => false
        }
    },
    data() {
        return {
            noData: ''
        };
    },
    methods: {
        changeState(data) {
            this.$emit('changeState', data);
        },
        handleSelectionChange(row) {
            this.$emit('update:currentRow', row);
        }
    }
};
